package com.learn.demo.lambda.method;

import java.util.function.Function;

/**
 * 数组引用
 * ClassName[]::new
 *
 * @author banjiawei
 * @date 2021/06/22
 */
public class ArrayRef {
    public static void main(String[] args) {
        Function<Integer, String[]> function = String[]::new;
        String[] apply = function.apply(5);
        System.out.println(apply.length);
    }
}
